// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------

import request from '@/utils/request'

export function getList(params) {
  //此处直接使用参数
  return request({
    url: '/banner/selectBannerList',
    method: 'GET',
    params
  })
}

export function picAdd(data) {
  return request({
    url: '/banner/insertAndUpdateBanner',
    method: 'POST',
    data: data
  })
}

export function picDel(pram) {
  const data = {
    id: pram.id,
  }
  return request({
    url: '/banner/deleteBannerById',
    method: 'GET',
    params : data
  })
}

export function updateStatusApi(params) {
  return request({
    url: `/banner/updateStatus`,
    method: 'get',
    params
  })
}
